package invoker {
	import command.ICommand;
	import flash.utils.getQualifiedClassName;
	/**
	 * ...
	 * @author wibrst@qq.com
	 */
	public class SimpleRemoteCtrl{
		
		public function SimpleRemoteCtrl() {
			
		}
		
		public function setCmd( command:ICommand ):void {
			this._slot = command;
		}
		
		public function btnPressed():void {
			this._slot.execute();
		}
		
		public function toString():String {
			var sBuff:String = 
				"------ ------ simple remote ctrl ------ ------"
				+ "\nslot:\t" + getQualifiedClassName( this._slot );
			return sBuff;
		}

		private var _slot:ICommand;
	}

}